package com.jia.service;

import com.jia.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jia.entity.vo.LoginVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杜佳佳
 * @since 2021-05-23
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getByUsername(String username);

    String getUserAuthorityInfo(String userId);

    Map<String, Object> getInfoByToken(HttpServletRequest request);

    void register(SysUser sysUser);

    void changePassword(SysUser sysUser);

    Map<String, Object> getInfo(LoginVo loginVo);
}
